

<!-- End Header -->

<!-- Container -->
<div id="container">
	<div class="shell">

		<!-- Small Nav -->
		<div class="small-nav">
			<a href="#">Dashboard</a> <span>&gt;</span> Current Logs
		</div>
		<!-- End Small Nav -->

		<!-- Message OK --
		<div class="msg msg-ok">
			<p><strong>Your file was uploaded succesifully!</strong></p>
			<a href="#" class="close">close</a>
		</div>
		<!-- End Message OK -->

		<!-- Message Error --
		<div class="msg msg-error">
			<p><strong>You must select a file to upload first!</strong></p>
			<a href="#" class="close">close</a>
		</div>
		<!-- End Message Error -->
		<br />
		<!-- Main -->
		<div id="main">
			<div class="cl">&nbsp;</div>

			<!-- Content -->
			<div id="content" style="width: 1000px">

				<!-- Box -->
				<div class="box">
					<!-- Box Head -->
					<div class="box-head">
						<h2 class="left">Current Logs</h2>
						<div class="right">
							<!-- 
							<label>search Logs</label>
							<input type="text" class="field small-field" />
							<input type="submit" class="button" value="search" />
						-->
						</div>
					</div>
					<!-- End Box Head -->

					<!-- Table -->
					<div class="table">
						<table width="100%" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<th>Action</th>
								<th>Message</th>
								<th>Date</th>
								<th>Added by</th>
							</tr>


							<?php
							if ($totalRecords > 0)
							{
								$pageCounter = 0;
								foreach ($query->result() as $log)
								{
									?>
							<tr <?php if($pageCounter % 2 == 0) echo "class='odd'";?>>

								<td><h3>
										<a href="#"><?php echo $log->affected_table;?> </a>
									</h3></td>
								<td><?php echo $log->description;?></td>
								<td><a href="#"><?php echo $log->log_createdon;?> </a></td>
								<td><a href="#"><?php echo $log->user_createdby;?> </a></td>
							</tr>
							<?php
							$pageCounter++;
								}
							}
							?>

						</table>

						<!-- Pagging -->
						<div class="pagging">
							<div class="left">Showing 1-12 of 44</div>
							<div class="right">
								<a href="#">Previous</a> <a href="#">1</a> <a href="#">2</a> <a
									href="#">3</a> <a href="#">4</a> <a href="#">245</a> <span>...</span>
								<a href="#">Next</a> <a href="#">View all</a>
							</div>
						</div>
						<!-- End Pagging -->

					</div>
					<!-- Table -->

				</div>
				<!-- End Box -->



			</div>
			<!-- End Content -->

			<div class="cl">&nbsp;</div>
		</div>
		<!-- Main -->
	</div>
</div>
<!-- End Container -->
